package com.yunxie.novelservice.application.convert;


import com.yunxie.novelservice.application.dto.NovelsDTO;

import com.yunxie.novelservice.domain.entity.NovelsBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 小说DTO转换器
 */
@Mapper
public interface NovelsDTOConverter {
    NovelsDTOConverter INSTANCE = Mappers.getMapper(NovelsDTOConverter.class);
    NovelsDTO convertBoToDTO(NovelsBo novelsBo);
    List<NovelsDTO> convertBoToDTOList(List<NovelsBo> novelsBoList);
    NovelsBo convertDTOToBo(NovelsDTO novelsDTO);

}
